using SqlSugar;
using System;

namespace CoreShop.Model
{
    /// <summary>
    /// 用户等级表
    /// </summary>
    public class corecmsusergrade
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public System.Int64 id { get; set; }

        /// <summary>
        /// 门店ID
        /// </summary>
        [SugarColumn(ColumnName = "storeId")]
        [SplitField]
        public System.Int32? storeId { get; set; }

        /// <summary>
        /// 总店ID
        /// </summary>
        [SugarColumn(ColumnName = "corpId")]
        public System.Int32? corpId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [SugarColumn(ColumnName = "title", IsNullable = true)]
        public System.String title { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        [SugarColumn(ColumnName = "isDefault", IsNullable = true)]
        public System.Boolean? isDefault { get; set; } = false;

        /// <summary>
        /// 开启自动升级
        /// </summary>
        [SugarColumn(ColumnName = "isOpenUpgrade", IsNullable = true)]
        public System.Boolean? isOpenUpgrade { get; set; }

        /// <summary>
        /// 发展用户数量
        /// </summary>
        [SugarColumn(ColumnName = "developNum", IsNullable = true)]
        public System.Int32 developNum { get; set; }

        /// <summary>
        /// 订单消费金额
        /// </summary>
        [SugarColumn(ColumnName = "expenditureMoney", IsNullable = true)]
        public System.Int32 expenditureMoney { get; set; }

        /// <summary>
        /// 充值总金额
        /// </summary>
        [SugarColumn(ColumnName = "rechargeAmount", IsNullable = true)]
        public System.Int32 rechargeAmount { get; set; }

        /// <summary>
        /// 权重优先级
        /// </summary>
        [SugarColumn(ColumnName = "prioritySortId", IsNullable = true)]
        public System.Int32 prioritySortId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "createTime", IsNullable = true)]
        public System.DateTime? createTime { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [SugarColumn(ColumnName = "isDelete", IsNullable = false)]
        public System.Boolean isDelete { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "modifyTime", IsNullable = true)]
        public System.Int64? modifyTime { get; set; } = 0;

        /// <summary>
        /// 折扣
        /// </summary>
        [SugarColumn(ColumnName = "discountValue")]
        public Decimal discountValue { get; set; } = 100;

        /// <summary>
        /// 优惠类型
        /// </summary>
        [SugarColumn(ColumnName = "discountType")]
        public System.Int32 discountType { get; set; } = 0;
    }
}
